local skill = fk.CreateSkill{
  name = "tea__qisang",
  frequency = Skill.Limited,
}
---@type TrigSkelSpec<TrigFunc>
local qisang = {
  anim_type = "support",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(self) and not target:isNude() and player:usedSkillTimes(self.name, Player.HistoryGame) == 0
  end,
  on_cost = function(self, event, target, player, data)
    local room = player.room    
    return room:askToDiscard(player, {
      min_num = 1,
      max_num = 1,
      include_equip = true,
      skill_name = self.name,
      prompt = "#qisang-ask:"..target.id,
    })
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local cards_id = target:getCardIds{Player.Hand, Player.Equip}
    if not player.dead then
      local to = room:askToChoosePlayers(player, {
        targets = room.alive_players,
        min_num = 1,
        max_num = 1,
        skill_name = self.name,
        prompt = "#qisang-choose",
        cancelable = false,
      })
      room:obtainCard(to[1], cards_id, false, fk.ReasonPrey)
    end
  end,
}
skill:addEffect(fk.Death, qisang)
return skill